<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <include file="./Public/Admin/header.html" />
    <style>
        .form-horizontal .control-group {
            margin-bottom: 20px;
        }
        .input-medium {
            width: 330px;
        }
        input {
            width: 300px;
        }

    </style>
</head>
<body>
<div id="main">
    <div class="container-fluid">

        <div class="row-fluid">
            <div class="span12">
                <div class="box">
                    <div class="box-title">
                        <div class="span10">
                            <h3><i class="icon-edit"></i>修改密码</h3>
                        </div>
                        <div class="span2"><a class="btn" href="Javascript:window.history.go(-1)">返回</a></div>
                    </div>

                    <div class="box-content">
                        <form action="{:U('Admin/Login/reset_pwd')}" method="post" class="form-horizontal form-validate">
                            <div class="control-group">

                            <div class="control-group">
                                <label for="old_pwd" class="control-label">当前密码：</label>
                                <div class="controls">
                                    <input type="password" name="old_pwd" id="old_pwd" class="input-medium" minlength="6" maxlength="16" data-rule-required="true" /><span class="maroon">请输入当前密码</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label for="new_pwd" class="control-label">新密码：</label>
                                <div class="controls">
                                    <input type="password" name="new_pwd" id="new_pwd" class="input-medium" minlength="6" maxlength="16" data-rule-required="true" /><span class="maroon">请输入6-16位的密码</span>
                                </div>
                            </div>
                                <div class="control-group">
                                    <label for="re_pwd" class="control-label">确认新密码：</label>
                                    <div class="controls">
                                        <input type="password" name="re_pwd" id="re_pwd" class="input-medium" equalto="#new_pwd" minlength="6" maxlength="16" data-rule-required="true" /><span class="maroon">确认你的新密码</span>
                                    </div>
                                </div>

                            <div class="form-actions">
                                <button type="button" class="btn btn-primary" id="btnsave">修改</button>
                                <a class="btn" href="Javascript:window.history.go(-1)">返回</a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

<script type="text/javascript">
    $("#btnsave").click(function(){
        var pro_id = $("#pro_id").val();
        if(pro_id == ''){
            G.ui.tips.err('请选择产品');
            return false;
        }
        $("#btnsave").submit();
    });
</script>
</body>
</html>
